home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 534.swf / scripts / frame_81 / DoAction.as
Text File  |  2006-01-17  |  5KB  |  155 lines

  1. if(result eq 0)
  2. {
  3.    numZero = new Array(2);
  4.    numZero[0] = _root.coin_t1.positionValue;
  5.    numZero[1] = _root.coin_t2.positionValue;
  6.    i = 0;
  7.    while(i < 2)
  8.    {
  9.       credit += numZero[i];
  10.       i++;
  11.    }
  12. }
  13. if(result eq "00")
  14. {
  15.    numDoubleZero = new Array(2);
  16.    numDoubleZero[0] = _root.coin_t2.positionValue;
  17.    numDoubleZero[1] = _root.coin_t3.positionValue;
  18.    i = 0;
  19.    while(i < 2)
  20.    {
  21.       credit += numDoubleZero[i];
  22.       i++;
  23.    }
  24. }
  25. if(result eq 1)
  26. {
  27.    numOne = new Array(11);
  28.    numOne[0] = _root.coin_t4.positionValue;
  29.    numOne[1] = _root.coin_t5.positionValue;
  30.    numOne[2] = _root.coin_t6.positionValue;
  31.    numOne[3] = _root.coin_t10.positionValue;
  32.    numOne[4] = _root.coin_t11.positionValue;
  33.    numOne[5] = _root.coin_t12.positionValue;
  34.    numOne[6] = _root.coin_t142.positionValue;
  35.    numOne[7] = _root.coin_t145.positionValue;
  36.    numOne[8] = _root.coin_t148.positionValue;
  37.    numOne[9] = _root.coin_t150.positionValue;
  38.    numOne[10] = _root.coin_t152.positionValue;
  39.    i = 0;
  40.    while(i < 11)
  41.    {
  42.       credit += numOne[i];
  43.       i++;
  44.    }
  45. }
  46. if(result eq 2)
  47. {
  48.    numTwo = new Array(11);
  49.    numTwo[0] = _root.coin_t6.positionValue;
  50.    numTwo[1] = _root.coin_t7.positionValue;
  51.    numTwo[2] = _root.coin_t8.positionValue;
  52.    numTwo[3] = _root.coin_t12.positionValue;
  53.    numTwo[4] = _root.coin_t13.positionValue;
  54.    numTwo[5] = _root.coin_t14.positionValue;
  55.    numTwo[6] = _root.coin_t143.positionValue;
  56.    numTwo[7] = _root.coin_t145.positionValue;
  57.    numTwo[8] = _root.coin_t148.positionValue;
  58.    numTwo[9] = _root.coin_t149.positionValue;
  59.    numTwo[10] = _root.coin_t151.positionValue;
  60.    i = 0;
  61.    while(i < 11)
  62.    {
  63.       credit += numTwo[i];
  64.       i++;
  65.    }
  66. }
  67. if(result eq 3)
  68. {
  69.    numThree = new Array(9);
  70.    numThree[0] = _root.coin_t8.positionValue;
  71.    numThree[1] = _root.coin_t9.positionValue;
  72.    numThree[2] = _root.coin_t14.positionValue;
  73.    numThree[3] = _root.coin_t15.positionValue;
  74.    numThree[4] = _root.coin_t144.positionValue;
  75.    numThree[5] = _root.coin_t145.positionValue;
  76.    numThree[6] = _root.coin_t148.positionValue;
  77.    numThree[7] = _root.coin_t150.positionValue;
  78.    numThree[8] = _root.coin_t152.positionValue;
  79.    i = 0;
  80.    while(i < 9)
  81.    {
  82.       credit += numThree[i];
  83.       i++;
  84.    }
  85. }
  86. if(result eq 4)
  87. {
  88.    numFour = new Array(14);
  89.    numFour[0] = _root.coin_t10.positionValue;
  90.    numFour[1] = _root.coin_t11.positionValue;
  91.    numFour[2] = _root.coin_t12.positionValue;
  92.    numFour[3] = _root.coin_t16.positionValue;
  93.    numFour[4] = _root.coin_t17.positionValue;
  94.    numFour[5] = _root.coin_t18.positionValue;
  95.    numFour[6] = _root.coin_t22.positionValue;
  96.    numFour[7] = _root.coin_t23.positionValue;
  97.    numFour[8] = _root.coin_t24.positionValue;
  98.    numFour[9] = _root.coin_t142.positionValue;
  99.    numFour[10] = _root.coin_t145.positionValue;
  100.    numFour[11] = _root.coin_t148.positionValue;
  101.    numFour[12] = _root.coin_t149.positionValue;
  102.    numFour[13] = _root.coin_t151.positionValue;
  103.    i = 0;
  104.    while(i < 14)
  105.    {
  106.       credit += numFour[i];
  107.       i++;
  108.    }
  109. }
  110. if(result eq 5)
  111. {
  112.    numFive = new Array(14);
  113.    numFive[0] = _root.coin_t12.positionValue;
  114.    numFive[1] = _root.coin_t13.positionValue;
  115.    numFive[2] = _root.coin_t14.positionValue;
  116.    numFive[3] = _root.coin_t18.positionValue;
  117.    numFive[4] = _root.coin_t19.positionValue;
  118.    numFive[5] = _root.coin_t20.positionValue;
  119.    numFive[6] = _root.coin_t24.positionValue;
  120.    numFive[7] = _root.coin_t25.positionValue;
  121.    numFive[8] = _root.coin_t26.positionValue;
  122.    numFive[9] = _root.coin_t143.positionValue;
  123.    numFive[10] = _root.coin_t145.positionValue;
  124.    numFive[11] = _root.coin_t148.positionValue;
  125.    numFive[12] = _root.coin_t140.positionValue;
  126.    numFive[13] = _root.coin_t152.positionValue;
  127.    i = 0;
  128.    while(i < 14)
  129.    {
  130.       _root.credit += numFive[i];
  131.       i++;
  132.    }
  133. }
  134. if(result eq 6)
  135. {
  136.    numSix = new Array(11);
  137.    numSix[0] = _root.coin_t14.positionValue;
  138.    numSix[1] = _root.coin_t15.positionValue;
  139.    numSix[2] = _root.coin_t20.positionValue;
  140.    numSix[3] = _root.coin_t21.positionValue;
  141.    numSix[4] = _root.coin_t26.positionValue;
  142.    numSix[5] = _root.coin_t27.positionValue;
  143.    numSix[6] = _root.coin_t144.positionValue;
  144.    numSix[7] = _root.coin_t145.positionValue;
  145.    numSix[8] = _root.coin_t148.positionValue;
  146.    numSix[9] = _root.coin_t149.positionValue;
  147.    numSix[10] = _root.coin_t151.positionValue;
  148.    i = 0;
  149.    while(i < 11)
  150.    {
  151.       credit += numSix[i];
  152.       i++;
  153.    }
  154. }
  155.